home *** CD-ROM | disk | FTP | other *** search
- /* Copyright (C) 2002 Tom Parker (tom@carrott.org),
- Matthias Münch (matthias@amigaworld.de)
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
- In addition, as a special exception, Tom Parker and Matthias Münch give
- permission to link the code of this program with a TCP stack of your
- choice, any official MUI libraries or classes and any custom MUI classes
- that should be necessary for the operation of this program. This
- exception also gives you permission to distribute linked combinations
- including this software with any of the before-mentioned libraries and
- classes. You must obey the GNU General Public License in all respects for
- all of the code used other than that provided by the before-mentioned
- libraries and classes. As part of this exception you are obliged to
- follow the license terms of the before-mentioned libraries, this license
- does not compel you to follow those terms, but if you do not then you may
- not link with those libraries. If you modify this file, you may extend
- this exception to your version of the file, but you are not obligated to
- do so. If you do not wish to do so, delete this exception statement from
- your version.
- */
- /*
- ** about window
- */
-
- #include "common.h"
-
- #include <MUI/NFloattext_mcc.h>
- #include "url.h"
-
- #include "pix/alogo.h"
-
- ULONG about_new(struct IClass *cl, Object *obj, struct opSet *msg);
-
-
- MUI_DISPATCH(about_dispatch)
- {
- if(msg->MethodID==OM_NEW) return(about_new(cl,obj,(APTR)msg));
- return(DoSuperMethodA(cl,obj,msg));
- }
-
-
- ULONG about_new(struct IClass *cl, Object *obj, struct opSet *msg)
- {
- Object *okbut;
-
- obj = (Object *)DoSuperNew(cl,obj,
- MUIA_Window_Title, MSG_ABOUT_TITLE,
- MUIA_Window_ID, MAKE_ID('W','H','A','T'),
- WindowContents, VGroup,
- MUIA_Background, MUII_RequesterBack,
- Child, ScrollgroupObject,
- MUIA_Background, MUII_ListBack,
- MUIA_Scrollgroup_FreeHoriz, FALSE,
- MUIA_Scrollgroup_Contents, VGroupV,
- VirtualFrame,
- Child, MUI_MakeObject(MUIO_VSpace, 2),
- Child, mui_pix(NULL, &alogo_defpix,
- TextFrame,
- MUIA_InnerBottom, 0,
- MUIA_InnerLeft, 0,
- MUIA_InnerRight, 0,
- MUIA_InnerTop, 0,
- TAG_DONE),
- Child, TextObject,
- MUIA_Font, MUIV_Font_Big,
- MUIA_Text_Contents, "\33cv"JABBERWOCKY_VERSION" ("JABBERWOCKY_DATE")"
- #ifdef MORPHOS
- " PPC"
- #endif
- , End,
- #ifdef JABBERWOCKY_BUILD
- Child, TextObject,
- MUIA_Font, MUIV_Font_Fixed,
- MUIA_Text_Contents, "\33c"JABBERWOCKY_BUILD,
- End,
- #endif
- Child, RectangleObject,
- MUIA_FixHeightTxt, "M",
- MUIA_Rectangle_HBar, TRUE,
- End,
- Child, HGroup,
- Child, MUI_MakeObject(MUIO_HSpace,2),
- Child, TextObject,
- MUIA_Text_Contents, MSG_ABOUT_TEXT1,
- End,
- Child, MUI_MakeObject(MUIO_HSpace,2),
- End,
- Child, RectangleObject,
- MUIA_FixHeightTxt, "M",
- MUIA_Rectangle_HBar, TRUE,
- End,
- Child, TextObject,
- MUIA_Text_Contents, MSG_ABOUT_TEXT2,
- End,
- End,
- End,
- Child, HGroup,
- Child, HSpace(0),
- Child, okbut = mui_button(MSG_ABOUT_OK_GAD),
- Child, HSpace(0),
- End,
- End,
- TAG_MORE, msg->ops_AttrList);
-
- if(!obj) return(NULL);
-
- DoMethod(okbut, MUIM_Notify, MUIA_Pressed, FALSE, obj, 3, MUIM_Set, MUIA_Window_Open, FALSE);
- DoMethod(obj, MUIM_Notify, MUIA_Window_CloseRequest, TRUE, obj, 3, MUIM_Set, MUIA_Window_Open, FALSE);
-
- return (ULONG)obj;
- }
-
-
- char *about_version(void)
- {
- char *lala = JABBERWOCKY_VERSION;
- return lala;
- }
-
-
- char *about_version_mui(void)
- {
- char *lala = "$VER: Jabberwocky "JABBERWOCKY_VERSION" ("JABBERWOCKY_DATE")";
- return lala;
- }
-